package cn.com.miao.lynx.service.system.api;

import cn.com.miao.lynx.common.base.controller.TreeController;
import cn.com.miao.lynx.common.base.mapping.TreeMapStructMapping;
import cn.com.miao.lynx.common.base.service.TreeService;
import cn.com.miao.lynx.service.system.entity.SysDict;
import cn.com.miao.lynx.service.system.mapping.SysDictMapping;
import cn.com.miao.lynx.service.system.service.SysDictService;
import lombok.AllArgsConstructor;
import lombok.Data;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * SysDictApi
 *
 * @title: SysDictApi
 * @description:
 * @author: dengmiao
 * @create: 2019-12-31 14:43
 **/
@Data
@AllArgsConstructor
@RestController
@RequestMapping("dict")
public class SysDictApi implements TreeController<SysDict, Long> {

    private final SysDictService sysDictService;

    private final SysDictMapping sysDictMapping;

    @Override
    public TreeService<SysDict, Long> getService() {
        return this.getSysDictService();
    }

    @Override
    public TreeMapStructMapping<SysDict, Long> getMapStructMapping() {
        return this.getSysDictMapping();
    }
}
